package net.cmkj.mine.util.tpp.coder;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

import net.cmkj.mine.bean.*;

/**
 * model映射文件
 * Example:
 * public void configPlugin(Plugins me) {
 *     ActiveRecordPlugin arp = new ActiveRecordPlugin(...);
 *     MappingKit.mapping(arp);
 *     me.add(arp);
 * }
 * @author zzcmkj
 *
 */
public class MappingKit {
	
	public static void mapping(ActiveRecordPlugin arp) {
		
		/********************模块信息表*********************/
		arp.addMapping("modules", "id", Modules.class);//模块表
		arp.addMapping("columns", "id", Columns.class);//模块表
		arp.addMapping("calculate", "id", Calculate.class);//模块表
		arp.addMapping("module_user", "id", ModuleUser.class);//权限表
		arp.addMapping("t_order", "id", Order.class);//权限表

		/********************系统信息表*********************/
		arp.addMapping("sys_log", "id", SysLog.class);
		arp.addMapping("sys_user", "id", SysUser.class);
		arp.addMapping("sys_role", "id", SysRole.class);
		arp.addMapping("sys_res", "id", SysRes.class);
		arp.addMapping("dict_type", "id", DictType.class);
		arp.addMapping("dict_data", "id", DictData.class);
		arp.addMapping("sys_dept", "id", SysDept.class);
		
	}

}